package cn.gzmli.dtt.sbzyc.util.fileupload;

import java.util.HashMap;
import java.util.Map;

/**
 * @Descript 文件上传枚举
 * @Author xsx
 * @Date 2018/1/9
 */
public enum UploadFileEnum {
    TYPE_1("工程勘察材料", "1", 1),
    TYPE_2("人工成本预算材料", "2", 2),
    TYPE_3("立项凭证", "3", 3),
    TYPE_4("工程技术交底", "4", 4),
    TYPE_5("施工安全交底", "5", 5),
    TYPE_6("成本汇总", "6", 6),
    TYPE_7("验收", "7", 7),
    TYPE_8("结题", "8", 8),
    TYPE_9("采购实物图片", "9", 9),
    TYPE_10("询价材料", "10", 10),
    TYPE_11("支付凭证", "11", 11),
    TYPE_12("回款凭证", "12", 12),
    TYPE_13("收货记录材料", "13", 13),
    TYPE_14("出库记录材料", "14", 14),
    TYPE_15("集中采购记录材料", "15", 15),
    TYPE_16("自采购采购记录材料", "16", 16),
	TYPE_17("立项审批附件材料", "17", 17),
    TYPE_18("成本汇总材料", "18", 18),
    TYPE_19("决算材料", "19", 19),
    TYPE_20("验收材料", "20", 20),

    TYPE_100("用户头像", "100", 100);

    private String chineseName;
    private String pathName;
    private int documentType;

    UploadFileEnum(String chineseName, String pathName, int documentType) {
        this.chineseName = chineseName;
        this.pathName = pathName;
        this.documentType = documentType;
    }

    public String getChineseName() {
        return chineseName;
    }

    public String getPathName() {
        return pathName;
    }

    public int getDocumentType() {
        return documentType;
    }

    public static Map<Integer, UploadFileEnum> fileMap(){
        Map<Integer, UploadFileEnum> map = new HashMap<>();
        map.put(TYPE_1.getDocumentType(), TYPE_1);
        map.put(TYPE_2.getDocumentType(), TYPE_2);
        map.put(TYPE_3.getDocumentType(), TYPE_3);
        map.put(TYPE_4.getDocumentType(), TYPE_4);
        map.put(TYPE_5.getDocumentType(), TYPE_5);
        map.put(TYPE_6.getDocumentType(), TYPE_6);
        map.put(TYPE_7.getDocumentType(), TYPE_7);
        map.put(TYPE_8.getDocumentType(), TYPE_8);
        map.put(TYPE_9.getDocumentType(), TYPE_9);
        map.put(TYPE_10.getDocumentType(), TYPE_10);
        map.put(TYPE_11.getDocumentType(), TYPE_11);
        map.put(TYPE_12.getDocumentType(), TYPE_12);
        map.put(TYPE_13.getDocumentType(), TYPE_13);
        map.put(TYPE_14.getDocumentType(), TYPE_14);
        map.put(TYPE_15.getDocumentType(), TYPE_15);
        map.put(TYPE_16.getDocumentType(), TYPE_16);
        map.put(TYPE_17.getDocumentType(), TYPE_17);
        map.put(TYPE_18.getDocumentType(), TYPE_18);
        map.put(TYPE_19.getDocumentType(), TYPE_19);
        map.put(TYPE_20.getDocumentType(), TYPE_20);
        map.put(TYPE_100.getDocumentType(), TYPE_100);
        return map;
    }
}
